package com.mooc.yohoshop.ui.seckillvalues;

import com.mooc.yohoshop.ApiService;
import com.mooc.yohoshop.entity.BaseEntity;
import com.mooc.yohoshop.network.BaseRepository;
import com.mooc.yohoshop.network.HttpFactory;
import com.mooc.yohoshop.network.HttpType;

import java.util.HashMap;

import io.reactivex.Observable;

public class SecKillValuesRepo extends BaseRepository {

    Observable<BaseEntity>requestValues(HashMap<String,Object>map){
        return convertObservable(HttpFactory.factory(HttpType.SIGNTYPE)
        .getRetrofit().create(ApiService.class).requestSecKillValues(createBody(map)));
    }

}
